﻿#include "stdafx.h"
#include "Student.h"
#include <iostream>

Student::Student()
{
}

Student::Student(const std::string &i, const std::string &na)
{
	id = i;
	name = na;
}

Student::Student(const std::string &i, const std::string &na, const std::string &s ,const std::string &cn, const std::string &dn)
{
	id = i;
	name = na;
	sex = s;
	className = cn;
	deptName = dn;
}

std::string Student::getId()
{
	return id;
}

void Student::setId(const std::string & i)
{
	id = i;
}

std::string Student::getName()
{
	return name;
}

void Student::setName(const std::string & na)
{
	name = na;

}
std::string Student::getSex()
{
	return sex;
}

void Student::setSex(const std::string & na)
{
	sex = na;

}
std::string Student::getClassName()
{
	return className;
}

void Student::setClassName(const std::string & na)
{
	className = na;
}
std::string Student::getDeptName()
{
	return deptName;
}

void Student::setDeptName(const std::string & na)
{
	deptName = na;
}
void Student::show() const
{
	using std::cout;
	using std::endl;
	cout << "**id:" << id<<", name:" << name<<", 性别:"<<sex<<", 班级:"<<className<<", 学院:"<<deptName<<endl;

}

Student::~Student()
{
}
